package 面向对象;

public class 构造方法 {
    public static void main(String[] args) {
        //TODO:给Person增加构造方法
        Person person = new Person();
        System.out.println(person.getName() +","+ person.getAge());
    }
    static class Person{
        private String name;
        private int age;

        public String getName(){
            return name;
        }

        public int getAge(){
            return age;
        }

        public Person(){
            name = name;
            age = age;
        }
    }
}

